package com.itheima.day03;
/*
案例5: while循环
        珠穆朗玛峰与折纸
 */

public class TestClassCase05
{
    public static void main(String[] args) {
     /*   int count=0;

        double p=0.1;
        double m=8844430;

        while(p<=m){

            p*=2;
            count++;
        }

        System.out.println(count);
        */
     double paper=0.1;
     double mountain=8844430;
     int i=0;

     while(paper<=mountain){
         paper*=2;
         i++;
     }
        System.out.println(i);



    }
}
